@import "vars";

:root {
  --primary: #000;
  --danger: d00d2e;
}

.hide-ios {
  display: none !important;
}
body {
  padding-top: 0;
  background: #fff;
}

.btn {
  border-radius: 0;
  border-color: var(--primary);

  &.active,
  &:active {
    border-color: var(--primary);
    background: #eee;
  }
}

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;

  &.active,
  &:active {
    border-color: var(--primary) !important;
    color: var(--primary);
  }
}

.btn-danger {
  background: var(--danger) !important;
  border-color: var(--danger) !important;

  &:active {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
  }
}

.header,
.footer,
.index-sections,
.index-locations {
  display: none;
}
#node-selector .card {
  display: block;
  padding: 0px;
  box-shadow: 0 0 0;
  border: 0px;
  .card-body {
    border: 0;
  }
  .media-left {
    display: none;
  }
}

.container {
  padding: 0;
}

.sidebar {
  padding: 0;
  display: none;
}
#main > .row {
  margin: 0;
  .col-lg-9,
  .col-lg-8,
  .col-lg-6,
  .col-lg-5,
  .col-lg-4,
  .col-lg-3 {
    padding: 0;
  }
}

.card {
  border-radius: 0;
  margin-bottom: 0 !important;
  box-shadow: 0 0 0;
  border-top: 0px solid #f0f0f0;
  border-bottom: 0px solid #f0f0f0;

  &:last-child {
    border-bottom: 0;
  }

  .card-body,
  .card-header,
  .card-footer {
    background: #fff;
    border-color: #f0f0f0;
    border-radius: 0 !important;
    padding: 20px 20px;
  }

  .card-footer {
    background: #f0f0f0;
    padding: 10px 20px;
  }

  &.card-lg {
    .card-body {
      padding: 20px;
    }
  }
}

.container > .alert {
  margin-right: 0;
}
.alert {
  border-radius: 0;
  border: 0;
  box-shadow: 0;
  padding: 10px;
  font-size: 14px;
  border-top: 0;
  margin-bottom: 0px;

  .close {
    opacity: 0.4;
    margin-top: 2px;
  }
}
.alert-success {
  background: #c3ffb8;
  border-color: #b6f3b8;
  color: #00a21c;
}
.alert-warning {
  background: #fff8b8;
  color: #cd8546;
  border-color: #faebcc;
}

.form-control {
  -webkit-appearance: none;

  &:focus {
    border-color: #ccc;
  }
}

.pagination {
  display: none;
}

.topics {
  .topic-list-heading {
    display: none;
  }
}

.editor-toolbar {
  .dropdown-menu {
    left: auto;
    right: 0;
  }
}

.topic-editor {
  height: 140px;
}

.no-result {
  display: none;
}

.new_reply {
  .submit-buttons {
    #reply-button {
      display: block;
      width: 100%;
    }
    .help-inline,
    .pull-right {
      display: none;
    }
  }
}

.edit-reply {
  .card-header {
    display: none;
  }
  .col-xs-2 {
    display: block;
    width: 50%;
  }
}

.topics {
  .topic {
    min-height: 60px;
    padding: 15px;
    &:first-child {
      padding-top: 0;
    }
    &:last-child {
      padding-bottom: 0;
    }
    border-bottom-color: #eee;
    &:active {
      background: #f5f5f5;
    }

    .avatar {
      padding-top: 3px;
    }

    .title {
      margin-bottom: 4px;
      a {
        font-size: 16px;
        line-height: 24px !important;
      }
      a:hover,
      a:active {
        text-decoration: none;
      }
    }

    .info {
      font-size: 14px;

      a.node {
      }
    }

    &.topic-visited {
      .title {
        a:link,
        a:visited {
          color: #666;
        }
      }
      .info {
        color: #bbb;
        a {
          color: #bbb;
        }
      }
      .count {
        a:link,
        a:visited {
          color: #ddd;
        }
      }
    }

    .count {
      padding-top: 0px;
      padding-left: 0;
      width: auto;
      text-align: right;
      a:link,
      a:hover,
      a:visited {
        font-size: 14px;
        line-height: 11px;
        min-width: 28px;
        text-align: right;
        border-radius: 80px;
        padding: 0;
        display: inline-block;
        text-decoration: none;
      }

      a:link {
        background: transparent;
        color: #666;
      }
      a:hover {
        background: transparent;
      }
      a.state-true,
      a:visited {
        background: transparent;
        color: #ddd;
      }
    }
  }
}

.topic-detail {
  .label-awesome {
    padding: 15px 20px 0 20px;
    margin-top: -1px;
    background: #fff;
    border: 0;
    color: var(--primary);
    .fa.awesome {
      color: var(--primary);
    }
    a {
      color: #cccaa2;
    }
  }

  .card-header {
    position: relative;
    h1 {
      font-size: 20px;
      margin-bottom: 0;

      a.node {
        margin-left: 30px;
        display: inline-block;
        margin-right: 0;
        font-size: 0.9em;
        text-align: right;
        font-weight: normal;
      }
      .title {
      }
    }

    .media-right {
      display: block;
      position: absolute;
      top: 20px;
      left: 20px;
      margin-left: 0;
      .avatar-48 {
        width: 24px;
        height: 24px;
      }
    }
  }

  .info {
    margin-top: 8px;
    font-size: 14px;
    color: #999;

    .user-name {
      color: #666;
    }
  }

  .toc-container {
    display: none !important;
  }
}

.markdown {
  p {
    font-size: 16px;
  }
  .zoom-image {
    overflow: hidden;
    display: block;
    margin: 8px -20px !important;
    img {
      width: 100%;
    }
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  pre {
    padding: 10px 20px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    code {
      margin: 0;
    }
  }
}

#replies {
  .reply {
    margin: 0 -20px;
    padding: 15px 20px 40px 20px;

    &.reply-system {
      padding: 15px 20px;
    }

    .avatar {
      left: 20px;
    }
    .avatar-48 {
      width: 24px;
      height: 24px;
    }

    .info {
      .name {
        font-size: 14px;
      }
      padding-left: 32px;
      font-size: 14px;
      line-height: 24px;

      .sub-info {
        float: right;
      }
    }

    .reply-to-block {
      .info {
        padding-left: 0px;
        line-height: 16px;
      }
    }

    .opts {
      position: absolute;
      right: 15px;
      bottom: 15px;
    }
  }
}

.notifications {
  .notification-group {
    .group-title {
      margin: 0 -15px;
      padding-left: 15px;
      padding-right: 15px;
    }
  }
}

.opts {
  a:link,
  a:visited {
    color: var(--primary) !important;
  }
  a.active {
    .fa {
      color: var(--danger);
    }
  }
}

.page-topics {
  .card {
    &.topic-detail,
    &#replies,
    &#reply {
      border-bottom-width: 1px;
    }
  }

  #node-selector-button {
    background: #000;
    border-color: #000;
    color: #fff;
    border-radius: 0;
  }

  textarea.topic-editor {
    border-radius: 0;
  }
}

.page-pages {
  .wiki-sidebar {
    display: block;
  }
}

.page-users {
  .sidebar {
    display: block;
    .profile {
      .opts {
        display: none;
      }
    }
  }

  #user_github_repos {
    display: none;
  }
  .nav-tabs {
    margin-top: 15px;
    li > a {
      border: 0;
      padding: 8px 8px;
    }
  }

  .node-topics {
    border-bottom: 1px solid #ddd;
  }
}

.form-control {
  width: 100% !important;
  border-color: #000 !important;
  color: #000 !important;
  border-radius: 0 !important;
}

.editor-toolbar {
  .nav-pills {
    li {
      &.active {
        a {
          color: #fff !important;
          background: #000 !important;
        }
      }

      a {
        border-radius: 0 !important;
        color: #000;
      }
    }
  }
}

.setting-menu {
  margin-top: 15px;
  padding-left: 0;
  display: none;

  .nav-pills {
    text-align: center;
  }
  .nav-pills > li {
    float: none;
    display: inline-block;

    &.active {
      a {
        color: #fff !important;
        background: #000 !important;
      }
    }

    &:last-child {
      a {
        border-left: 0;
      }
    }

    a {
      border-radius: 0 !important;
      box-shadow: 0 0 0;
      border-left: 0;
      border: 1px solid #000 !important;
      color: #000 !important;
    }
  }
}

.page-users {
  .user-teams,
  .nav-tabs,
  .userinfo {
    display: none;
  }
}

.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-xs-1,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9 {
  padding: 0;
}
